<?php
if(isset($_SESSION['Allyfolio_User_ID']) && $_SESSION['Allyfolio_User_ID']!="" && $_SESSION['Allyfolio_User_ID']>0)
{
	$strSQL = "update af_users set Last_Activity = '".time()."', Login_Status = 'PC Login' where User_ID='".$_SESSION['Allyfolio_User_ID']."'";
	$pdodbobj->query($strSQL,array());
}

?>
<link type="text/css" href="cometchat/cometchatcss.php" rel="stylesheet" charset="utf-8">
<script type="text/javascript" src="cometchat/cometchatjs.php" charset="utf-8"></script>
<!--=================Header Start=======================-->
	<div class="wrapper row1">
	<div class="header" <?php if(isset($pagename) && ($pagename=="index.php" || $pagename=="signup.php")){ echo "style='height:109px;'"; }  ?>  >
    	<?php
        if(!isset($_SESSION['Allyfolio_User_ID']) || $_SESSION['Allyfolio_User_ID']=="" || $_SESSION['Allyfolio_User_ID']==0)
        {
        ?>
        <div class="log_button" <?php if(isset($pagename) && ($pagename=="index.php" || $pagename=="signup.php")){ echo "style='margin-top:28px;'"; }  ?> >
    		<?php
            if($pagename!="signup.php")
            {
            ?>
            <a href="signup.php" class="signup_title">Sign Up</a>  
            <?php
            }
            if($pagename!="index.php")
            {
            ?>
            <a href="index.php" class="signup_title">Log In</a>    
    	    <?php
            }
            ?>  
        </div>
        <?php
        }
        if(isset($pageheading) && $pageheading!="")
        {
        ?>
        <div class="heading">
        	<h1><?php echo $pageheading; ?></h1>
        </div>
    	<?php
        }
        ?>
        <a href="home.php" class="logo"></a>
    </div>
    <div class="clearfix"></div>  
    
    
    </div>
    <div class="clearfix"></div>
    <!--=================Header end=======================-->